﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace jindong
{
    public class Coupon
    {
        [Key]
        [Column]
        /// <summary>
        /// 券ID
        /// </summary>
        public string? coupon_id { get; set; }

        [Column]
        /// <summary>
        /// 类型
        /// </summary>
        public bool discount_type { get; set; }

        [Column]
        /// <summary>
        /// 最低使⽤⾦额
        /// </summary>
        public decimal min_amount { get; set; }

        /// <summary>
        /// 领取⽤户ID
        /// </summary>
        public Guid user_id { get; set; }
    }
}
